<!-- 登录页面 -->
<template>
	<view class="login">
		<view class="top">
			<view class="login1">登录</view>
			<view class="login2">欢迎来到宠物服务上门</view>
		</view>
		<view class="userlogin">
			<view class="userlogin1">
				<uv-input placeholder="请输入您的手机号" customStyle="border:none;padding: 2%;"  @change="change"></uv-input>
			</view>
			<view class="userlogin1">
				<uv-input placeholder="请输入您的密码" customStyle="border:none;padding: 2%;"  @change="change"></uv-input>
			</view>
			<view class="determine">
				<uv-button type="primary" color="#008c8c" shape="circle" text="确定" @click="goIndex"></uv-button>
			</view>
			<view class="all">
				<view class="left" @click="goPassword">忘记密码</view>
				<view class="right" @click="goEnroll">新用户注册</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			change(e) {
				console.log('change', e);
			},
			// 去注册页
			goEnroll(){
				uni.navigateTo({ url: '/pages/login/enroll/enroll' })
			},
			// 去密码页
			goPassword(){
				uni.navigateTo({ url: '/pages/login/password/password' })
			},
			goIndex(){
				uni.switchTab({ url: '/pages/index/index' })
			}
		}
	}
</script>

<style lang="scss">
	@import url("../login/login.css");
</style>